﻿using NFine.Data;
using NFine.Domain._03_Entity.Biz;
using NFine.Domain._04_IRepository.Biz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NFine.Repository.Biz
{
   public class AddressRepository : RepositoryBase<AddressEntity>, IAddressRepository
    {  /// <summary>
       /// 更新默认
       /// </summary>
       /// <param name="openId"></param>
        public int updateDefault(string openId)
        {
            return dbcontext.Database.ExecuteSqlCommand(string.Format("update biz_address set F_Default=0 where F_UserId='{0}'", openId));
        }
    }
}
